]> dgit.raspbian.org Git - gnome-shell.git/commit
workspace: Cap scaled floating size to target layout size
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 30 Jul 2020 13:02:18 +0000 (15:02 +0200)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Sat, 5 Sep 2020 16:12:08 +0000 (16:12 +0000)
commit7f402c1c6be99dcd92092eb37fbfd6c31624f1cb
tree44e072de6d2ce6b309f6828a148704758851c447
parent497f10178c6704f8fea3b82692e8e30d6909d201
workspace: Cap scaled floating size to target layout size

A window preview's floating geometry is scaled down according to the
workspace's allocation, while the layout geometry is computed directly
for the available space.

For previews that maintain their real size in the layout geometry,
that scaling leads to a distracting size bounce when transitioning
between both layouts.

Address that by not allowing the scaled floating size to drop below
that layout size (which is at most equal to the unscaled floating size).

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2968
js/ui/workspace.js